# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-fbneo
pkgver=0_git20220416
pkgrel=0
_commit="100c758b1a9b3b647234174b0b1607c8d60cd147"
pkgdesc="FinalBurn Neo, an Emulator for Arcade Games & Select Consoles"
url="https://github.com/libretro/FBNeo"
arch="all"
license="custom"
makedepends="zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/FBNeo/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/FBNeo-$_commit"
options="!check" # No tests

build() {
	rm -rf src/dep/libs/zlib
	make -C src/burner/libretro
}

package() {
	install -Dm644 src/burner/libretro/fbneo_libretro.so "$pkgdir"/usr/lib/libretro/fbneo_libretro.so
}

sha512sums="
56a0b7f644321cba34f9017beb047afcd704545e190ae49aeaf6d9c749659b1770e00820ab84addab7b263278909669dcb94073ed76881a15a6902d0d1323896  libretro-fbneo-100c758b1a9b3b647234174b0b1607c8d60cd147.tar.gz
d2791aaa0984f73fc44afbefb37d825f78e5e690dc3c5c29852ae992aab88f049fa4142d63630656d184e0aa7ebd9a52e1db344b557b3794aaea9e2b527390b2  patch-unbundle.patch
"
